<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"  %>


		<ul class="snb_menu">
		
		<sec:authorize ifNotGranted="ROLE_USER">
		<li>회원관리
			<ul>
			<li id="id_left_menu_member_login"><a href="/member/login">로그인</a></li>
			<li id="id_left_menu_member_add"><a href="/member/add">회원가입</a></li>
			</ul>
		</li>
		</sec:authorize>
		
		<sec:authorize ifAllGranted="ROLE_USER">
		<li>회원관리
			<ul>
			<li id="id_left_menu_member_view"><a href="/member/view/<sec:authentication property="principal.username"/>">개인정보 조회</a></li>
			<li id="id_left_menu_member_edit"><a href="/member/edit/<sec:authentication property="principal.username"/>">개인정보 수정</a></li>
			<li id="id_left_menu_member_logout"><a href="/member/logout">로그아웃</a></li>
			</ul>
		</li>
		<li>이력관리
			<ul>
			<li id="id_left_menu_member_hist"><a href="/member/hist"><sec:authentication property="principal.user.name"/>님의 이력</a></li>
			</ul>
		</li>
		</sec:authorize>
		
		</ul>
		
		
		<!-- Quick Menu -->
		<%@ include file="quickmenu.jsp" %>
		<!-- Banner AD -->
		<%@ include file="banner.jsp" %>
		